<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>忘记密码</title>
    <style>
        /* 全局样式 */
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f4f4f9;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
        }

        /* 主容器样式 */
        .box {
            width: 400px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            padding: 30px;
        }

        /* 标题样式 */
        h1 {
            text-align: center;
            color: #555;
            margin-bottom: 30px;
        }

        /* 输入框容器样式 */
        .username,
        .phone,
        .code,
        .pwd,
        .pwd2 {
            margin-bottom: 20px;
        }

        /* 输入框样式 */
        input[type="text"],
        input[type="password"] {
            width: 100%;
            padding: 12px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 16px;
            transition: border-color 0.3s;
        }

        input[type="text"]:focus,
        input[type="password"]:focus {
            border-color: #007BFF;
            outline: none;
        }

        /* 验证码按钮样式 */
        .vft {
            padding: 12px 20px;
            background-color: #007BFF;
            color: #fff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
        }

        .vft:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }

        .vft:hover:not(:disabled) {
            background-color: #0056b3;
        }

        /* 同意协议样式 */
        .agree {
            margin-bottom: 20px;
            font-size: 14px;
        }

        .agree a {
            color: #007BFF;
            text-decoration: none;
        }

        .agree a:hover {
            text-decoration: underline;
        }

        /* 注册链接样式 */
        .major a {
            display: block;
            width: 100%;
            padding: 12px;
            background-color: #28a745;
            color: #fff;
            text-align: center;
            text-decoration: none;
            border-radius: 4px;
            font-size: 16px;
            transition: background-color 0.3s;
        }

        .major a:hover {
            background-color: #218838;
        }
    </style>

</head>

<body>
    <div class="box">
        <h1>忘记密码</h1>
        <div class="username">
            <input type="text" class="uname" name="uname" placeholder="设置用户名称">
            <span></span>
        </div>
        <div class="phone">
            <input type="text" class="phone" name="phone" placeholder="输入手机号">
            <span></span>
        </div>

        <div class="code">
            <input type="text" class="code" name="code" placeholder="输入验证码">
            <input type="button" class="vft" value="获取验证码" disabled>
            <span></span>
        </div>

        <div class="pwd">
            <input type="password" class="password" name="password" placeholder="设置6至20位数字、字母和符号组合">
            <span></span>
        </div>

        <div class="pwd2">
            <input type="password" class="password2" name="password2" placeholder="再次输入密码">
            <span></span>
        </div>

        <div class="agree">
            <input type="checkbox">我已同意<a href="用户协议.html" target="_blank">《用户协议》</a>
        </div>
        <form>
            <div class="major">
                <a href="登录界面.html">注册</a>
            </div>
        </form>
    </div>
</body>

</html>